package com.lsz.flight_system.repository;

import com.lsz.flight_system.entity.BuyTicketsMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface BuyTicketsMessageRepository
        extends JpaRepository<BuyTicketsMessage,Long>, JpaSpecificationExecutor<BuyTicketsMessage> {
    BuyTicketsMessage findBuyTicketsMessageById(Long id);

    List<BuyTicketsMessage> findBuyTicketsMessagesByPlaneId(String planeId);
}
